

<%@ page import="com.portico.dept.solarch.ProjectRisks" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'projectRisks.label', default: 'ProjectRisks')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        %{--<div class="nav">--}%
            %{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
            %{--<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>--}%
        %{--</div>--}%
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${projectRisksInstance}">
            <div class="errors">
                <g:renderErrors bean="${projectRisksInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="severity"><g:message code="projectRisks.severity.label" default="Severity" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'severity', 'errors')}">
                                    <g:select name="severity" from="${projectRisksInstance.constraints.severity.inList}" value="${projectRisksInstance?.severity}" valueMessagePrefix="projectRisks.severity"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="projectRisks.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" cols="40" rows="5" value="${projectRisksInstance?.description}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="currentStatus"><g:message code="projectRisks.currentStatus.label" default="Current Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'currentStatus', 'errors')}">
                                    <g:select name="currentStatus" from="${projectRisksInstance.constraints.currentStatus.inList}" value="${projectRisksInstance?.currentStatus}" valueMessagePrefix="projectRisks.currentStatus"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="createdOn"><g:message code="projectRisks.createdOn.label" default="Created On" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'createdOn', 'errors')}">
                                    <g:datePicker name="createdOn" precision="day" value="${projectRisksInstance?.createdOn}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="project"><g:message code="projectRisks.project.label" default="Project" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'project', 'errors')}">
                                    <g:select name="project.id" from="${com.portico.dept.solarch.Project.list()}" optionKey="id" value="${projectRisksInstance?.project?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="remediation"><g:message code="projectRisks.remediation.label" default="Remediation" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectRisksInstance, field: 'remediation', 'errors')}">
                                    <g:textField name="remediation" value="${projectRisksInstance?.remediation}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
